Version

SortMergeGeneric<T>(T[],IComparer<T>) Method

Sorts the passed in array based on the passed in comparer using a modified merge-sort algorithm. It requires allocation of an array equal in size to the array to be sorted. Merge sort should be used if the operation of comparing items is expensive.
Syntax
public static void SortMergeGeneric<T>( 
   T[] array,
   IComparer<T> comparer
)

Parameters

array
The array to be sorted
comparer
The comparer to use for the sort

Type Parameters

T
Requirements

Target Platforms: Android 4.4+, iOS 8+

Development Environments: Visual Studio 2015+, Visual Studio for Mac Preview, Xamarin for Visual Studio 4.2+

See Also